package com.topfinance.payment.ebo;

// Generated 2011-1-9 9:12:59 by Hibernate Tools 3.4.0.Beta1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TCfgOperation generated by hbm2java
 */
@Entity
@Table(name = "T_CFG_OPERATION")
public class TCfgOperationEbo implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5491337053732482459L;

	private Integer oid;

	private TCfgProtocolEbo TCfgProtocol;

	private TCfgFormatEbo TCfgFormat;

	private String name;

	private String downPpReplyType;
	
	private String upPpReplyType;

	public TCfgOperationEbo() {
	}

	public TCfgOperationEbo(Integer oid) {
		this.oid = oid;
	}

	public TCfgOperationEbo(Integer oid, TCfgProtocolEbo TCfgProtocol,
			TCfgFormatEbo TCfgFormat, String name, String downPpReplyType,
			String upPpReplyType) {
		this.oid = oid;
		this.TCfgProtocol = TCfgProtocol;
		this.TCfgFormat = TCfgFormat;
		this.name = name;
		this.downPpReplyType = downPpReplyType;
		this.upPpReplyType = upPpReplyType;
	}

	@Id
	@Column(name = "OID", unique = true, nullable = false, precision = 10, scale = 0)
	@SequenceGenerator(name = "CFG_SEQUNCE_GEN", sequenceName = "S_CFG_SEQUNCE")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CFG_SEQUNCE_GEN")
	public Integer getOid() {
		return this.oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "PROT_ID")
	public TCfgProtocolEbo getTCfgProtocol() {
		return this.TCfgProtocol;
	}

	public void setTCfgProtocol(TCfgProtocolEbo TCfgProtocol) {
		this.TCfgProtocol = TCfgProtocol;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "FORMAT_ID")
	public TCfgFormatEbo getTCfgFormat() {
		return this.TCfgFormat;
	}

	public void setTCfgFormat(TCfgFormatEbo TCfgFormat) {
		this.TCfgFormat = TCfgFormat;
	}

	@Column(name = "NAME", length = 80)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DOWN_PP_REPLY_TYPE", length = 1)
	public String getDownPpReplyType() {
		return this.downPpReplyType;
	}

	public void setDownPpReplyType(String downPpReplyType) {
		this.downPpReplyType = downPpReplyType;
	}

	@Column(name = "UP_PP_REPLY_TYPE", length = 1)
	public String getUpPpReplyType() {
		return this.upPpReplyType;
	}

	public void setUpPpReplyType(String upPpReplyType) {
		this.upPpReplyType = upPpReplyType;
	}

}
